﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microhard.Notifications.Interfaces;
using Microhard.Core.DBUtility;
using Microhard.Notifications.Models;
using Micrhard.FMCG.Server.DataAccess;
using Micrhard.FMCG.Server.Models;

namespace Micrhard.FMCG.Server.Notification
{
    public class DailyApproveNotifi : INotificationScope
    {
        public List<Microhard.Notifications.Models.NotificationUserModel> GetReceivers(object model)
        {
            MicrhardFMCGServerEntities db = new MicrhardFMCGServerEntities();
            DailyModel bpm = model as DailyModel;
            var emp = db.Employees.SingleOrDefault(e => e.EmployeeID == bpm.EmployeeID);
            List<NotificationUserModel> result = new List<NotificationUserModel>();
            result.Add(new NotificationUserModel
            {
                Mail = emp.QQMail
            });
            return result;
        }
    }
}
